/**
 * QueryServiceImpl.java
 * com.sitech.dmcs.core
 * Function： TODO 
 *
 *   ver  author   date    
 * ──────────────────────────────────
 *   	 geutopia  Mar 8, 2011        
 *
 * Copyright (c) 2011, TNT All Rights Reserved.
*/

package com.sitech.timing;

import java.util.Map;

import com.sitech.timing.domain.GroupTaskInfo;
import com.sitech.timing.domain.GroupTaskInstance;
import com.sitech.timing.domain.ParamInfo;
import com.sitech.timing.domain.TaskInfo;
import com.sitech.timing.domain.TaskInstance;

/**
 * ClassName:QueryServiceImpl
 * Function: TODO ADD FUNCTION
 * Reason:	 TODO ADD REASON
 *
 * @author   geutopia
 * @version  
 * @since    Ver 1.1
 * @Date	 2011	Mar 8, 2011		2:23:34 PM
 *
 * @see 	 
 */

public class QueryServiceImpl implements QueryService
{

	/**
	 * (non-Javadoc)
	 * @see com.sitech.timing.QueryService#getALLRunTask(java.lang.String)
	 */
	public Map<String, TaskInstance> getALLRunTask(String groupTaskInstanceId)
	{
		return GroupTaskContext.getALLRunTask(groupTaskInstanceId);
	}

	/**
	 * (non-Javadoc)
	 * @see com.sitech.timing.QueryService#getAllRunGroupTask()
	 */
	public Map<String, GroupTaskInstance> getAllRunGroupTask()
	{
		// TODO Auto-generated method stub
		return GroupTaskContext.getAllRunGroupTask();
	}

	/**
	 * (non-Javadoc)
	 * @see com.sitech.timing.QueryService#getGroupTaskInfo(java.lang.String)
	 */
	public GroupTaskInfo getGroupTaskInfo(String groupTaskId)
	{
		// TODO Auto-generated method stub
		return GroupTaskContext.getGroupTaskInfo(groupTaskId);
	}

	/**
	 * (non-Javadoc)
	 * @see com.sitech.timing.QueryService#getParamInfo(java.lang.String)
	 */
	public ParamInfo getParamInfo(String paramInfoId)
	{
		// TODO Auto-generated method stub
		return GroupTaskContext.getParamInfo(paramInfoId);
	}

	/**
	 * (non-Javadoc)
	 * @see com.sitech.timing.QueryService#getRunTask(java.lang.String, java.lang.String)
	 */
	public TaskInstance getRunTask(String groupTaskInstanceId, String taskInstanceId)
	{
		// TODO Auto-generated method stub
		return GroupTaskContext.getRunTask(groupTaskInstanceId, taskInstanceId);
	}

	/**
	 * (non-Javadoc)
	 * @see com.sitech.timing.QueryService#getRunTaskGroup(java.lang.String)
	 */
	public GroupTaskInstance getRunTaskGroup(String groupTaskInstanceId)
	{
		// TODO Auto-generated method stub
		return GroupTaskContext.getRunTaskGroup(groupTaskInstanceId);
	}

	/**
	 * (non-Javadoc)
	 * @see com.sitech.timing.QueryService#getTaskInfo(java.lang.String, java.lang.String)
	 */
	public TaskInfo getTaskInfo(String groupTaskId, String taskInfoId)
	{
		// TODO Auto-generated method stub
		return GroupTaskContext.getTaskInfo(groupTaskId, taskInfoId);
	}

}
